
/*****************************************************************************
 *
 * 作   者: 陈兴海 * 创建时间: 2022/11/23 16:59:22 *
 * Copyright (C) 2008 - 鹏业软件公司
 *
 *****************************************************************************/

import {DataPacket, NorDataList} from 'pengesoft-ng-lib';

/**
 * 续租申请记录表
 */
export class ReletApply extends DataPacket {
  Id: string; // 报销申请编号
  CustomerId: string; // 续租申请人Id
  HouseId: string; // 房屋Id
  CreateTime: Date|undefined; // 申请时间
  ApproveTime: Date|undefined; // 审批时间
  Remark: string; // 备注
  State: number; // 申请状态
  IsBackout: boolean; // 撤销状态
  Community: string; // 小区
  CustomerName: string; // 客户名称

  constructor(options: Partial<ReletApply> = {}) {
    super();
    this.Id = options.Id || '';
    this.CustomerId = options.CustomerId || '';
    this.HouseId = options.HouseId || '';
    this.CreateTime = this.newDate(options.CreateTime);
    this.ApproveTime = this.newDate(options.ApproveTime);
    this.Remark = options.Remark || '';
    this.State = !options.State ? 0 : Number.parseFloat(options.State.toString());
    this.IsBackout = !!options.IsBackout;
    this.Community = options.Community || '';
    this.CustomerName = options.CustomerName || '';
  }
}

/**
 * 续租申请记录表列表
 */
export class ReletApplyList extends NorDataList<ReletApply> {

  constructor(options: Partial<ReletApplyList> | Array<ReletApply> = {}) {
    super(options, ReletApply);
  }
}

